package com.itxiaowu.service;

import com.itxiaowu.entity.PageResult;
import com.itxiaowu.pojo.Role;

import java.util.Map;

public interface DyRoleService {
    PageResult findPage(Integer currentPage, Integer pageSize, String queryString);

    Map<String,Object> findAllPermissionMenu();

    void addRolePermissionMenu(Role role, Integer[] permissionIds, Integer[] menuIds);

    Role queryRoleById(Integer id);

    Integer[] findPermissionIdsById(Integer id);

    Integer[] findMenuIdsById(Integer id);

    void edit(Role role, Integer[] permissionIds, Integer[] menuIds);

    void deleteRoleById(Integer id);
}
